const NodePolyfillPlugin = require('node-polyfill-webpack-plugin')
module.exports = {
    configureWebpack: {
        plugins: [new NodePolyfillPlugin()]
    },
    pluginOptions: {
        'style-resources-loader': {
            preProcessor: 'scss',
            patterns: []
        }
    },
    devServer: {
        proxy: {
            '/api': {
                target: 'http://127.0.0.1:8080',
                ws: true,
                changeOrigin: true,
                pathRewrite: {
                    '^/api': ''
                }
            },
        }
    }
}
